package com.leo.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("tb_material")
public class Material {
	@TableId(value = "materialId", type = IdType.AUTO)
	private int materialId;
	
	@TableField("categoryId")
	private int categoryId;//产品类型
	
	@TableField("name")
	private String name;//名称
	
	@TableField("mfrs")
	private String mfrs;//制造商
	
	@TableField("safetyStock")
	private double safetyStock;//安全存量（KG）
	
	@TableField("model")
	private String model;//型号
	
	@TableField("standard")
	private String standard;//规格
	
	@TableField("color")
	private String color;//颜色
	
	@TableField("unit")
	private String unit;//单位-单个
	
	@TableField("remark")
	private String remark;//备注
	
	@TableField("unitId")
	private int unitId;//计量单位Id
	
	@TableField("enabled")
	private int enabled;//启用 0-禁用  1-启用
	
	@TableField("otherField1")
	private String otherField1;//自定义1
	
	@TableField("otherField2")
	private String otherField2;//自定义2
	
	@TableField("otherField3")
	private String otherField3;//自定义3
	
	@TableField("enableSerialNumber")
	private String enableSerialNumber;//是否开启序列号，0否，1是
	
	@TableField("tenantId")
	private int tenantId;//租户id
	
	@TableField("deleteFlag")
	private String deleteFlag;//删除标记，0未删除，1删除

	public int getMaterialId() {
		return materialId;
	}

	public void setMaterialId(int materialId) {
		this.materialId = materialId;
	}

	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name == null ? null : name.trim();
	}

	public String getMfrs() {
		return mfrs;
	}

	public void setMfrs(String mfrs) {
		this.mfrs = mfrs == null ? null : mfrs.trim();
	}

	public double getSafetyStock() {
		return safetyStock;
	}

	public void setSafetyStock(double safetyStock) {
		this.safetyStock = safetyStock;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model == null ? null : model.trim();
	}

	public String getStandard() {
		return standard;
	}

	public void setStandard(String standard) {
		this.standard = standard == null ? null : standard.trim();
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color == null ? null : color.trim();
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit == null ? null : unit.trim();
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public int getUnitId() {
		return unitId;
	}

	public void setUnitId(int unitId) {
		this.unitId = unitId;
	}

	public int getEnabled() {
		return enabled;
	}

	public void setEnabled(int enabled) {
		this.enabled = enabled;
	}

	public String getOtherField1() {
		return otherField1;
	}

	public void setOtherField1(String otherField1) {
		this.otherField1 = otherField1 == null ? null : otherField1.trim();
	}

	public String getOtherField2() {
		return otherField2;
	}

	public void setOtherField2(String otherField2) {
		this.otherField2 = otherField2 == null ? null : otherField2.trim();
	}

	public String getOtherField3() {
		return otherField3;
	}

	public void setOtherField3(String otherField3) {
		this.otherField3 = otherField3 == null ? null : otherField3.trim();
	}

	public String getEnableSerialNumber() {
		return enableSerialNumber;
	}

	public void setEnableSerialNumber(String enableSerialNumber) {
		this.enableSerialNumber = enableSerialNumber == null ? null : enableSerialNumber.trim();
	}

	public int getTenantId() {
		return tenantId;
	}

	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
	}
	
	
}
